package dexter.core.client;

import dexter.core.common.FinishResult;
import dexter.net.msg.common.ResponseListener;
import dexter.net.msg.common.ResponseParams;

public class FinishListener implements ResponseListener {
   
	private FinishResult result = null;
    
    public boolean hasResult() {
    	return result!=null;
    }
    
    public FinishResult getResult() {
    	return result;
    }

	public void errorArrive(ResponseParams result) {
		this.result = (FinishResult) result;
		System.out.println("TEST ERROR ARRIVE : "+result);

	}

	public void resultArrive(ResponseParams result) {
		this.result = (FinishResult) result;
		System.out.println("TEST RESULT ARRIVE : "+result);
	}

}

